﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Shapes;
using Microsoft.Xna.Framework;
using System.Collections.Generic;
using Microsoft.Xna.Framework.Graphics;

namespace Viz
{
    public static class Shapes
    {
        public static VertexPositionColor[] Box(
            Color                                          c
            )
        {
            Vector3[]             corners = new BoundingBox(-Vector3.One, Vector3.One).GetCorners();
            VertexPositionColor[] v = new VertexPositionColor[]
            {
                new VertexPositionColor(corners[0], c),
                new VertexPositionColor(corners[1], c),
                new VertexPositionColor(corners[2], c),
                new VertexPositionColor(corners[2], c),
                new VertexPositionColor(corners[3], c),
                new VertexPositionColor(corners[0], c),
                new VertexPositionColor(corners[6], c),
                new VertexPositionColor(corners[5], c),
                new VertexPositionColor(corners[4], c),
                new VertexPositionColor(corners[4], c),
                new VertexPositionColor(corners[7], c),
                new VertexPositionColor(corners[6], c),
                new VertexPositionColor(corners[7], c), 
                new VertexPositionColor(corners[4], c), 
                new VertexPositionColor(corners[0], c),
                new VertexPositionColor(corners[0], c), 
                new VertexPositionColor(corners[3], c), 
                new VertexPositionColor(corners[7], c),
                new VertexPositionColor(corners[1], c), 
                new VertexPositionColor(corners[5], c), 
                new VertexPositionColor(corners[6], c), 
                new VertexPositionColor(corners[6], c), 
                new VertexPositionColor(corners[2], c), 
                new VertexPositionColor(corners[1], c),
                new VertexPositionColor(corners[4], c), 
                new VertexPositionColor(corners[5], c), 
                new VertexPositionColor(corners[1], c),
                new VertexPositionColor(corners[1], c), 
                new VertexPositionColor(corners[0], c), 
                new VertexPositionColor(corners[4], c),
                new VertexPositionColor(corners[6], c), 
                new VertexPositionColor(corners[3], c), 
                new VertexPositionColor(corners[2], c),
                new VertexPositionColor(corners[7], c), 
                new VertexPositionColor(corners[3], c), 
                new VertexPositionColor(corners[6], c)
            };

            return v;
        }
    }
}
